package com.jinmdz.app.dao.model.coffin;

import com.jinmdz.app.dao.base.BaseItem;
import com.jinmdz.fmis.common.annotation.AnValidate;
import com.jinmdz.fmis.common.constant.EValidateCode;
import io.swagger.annotations.ApiModelProperty;

/**
 * 预定纸棺信息
 *
 * @author JiYanJiang
 * @date 2020-08-24 15:26
 */
public class CoffinItem extends BaseItem {

    /**
     * 业务编码
     */
    @ApiModelProperty(value = "业务编码", name = "businessCode", position = 1)
    private String businessCode;

    /**
     * 服务项目外键
     */
    @AnValidate(name = "服务项目外键", required = true, code = EValidateCode.GREATER_ZERO)
    @ApiModelProperty(value = "服务项目外键", name = "serviceItemId", position = 2)
    private Integer serviceItemId;

    /**
     * 服务项目费用名称
     */
    @AnValidate(name = "服务项目费用名称")
    @ApiModelProperty(value = "服务项目费用名称", name = "itemName", position = 3)
    private String itemName;

    /**
     * 是否不可结算
     */
    @AnValidate(name = "是否不可结算")
    @ApiModelProperty(value = "是否不可结算", name = "asSettled", position = 4)
    private Integer asUnsettled;

    /**
     * 是否结算
     */
    @AnValidate(name = "是否结算", code = EValidateCode.NO_LESS_ZERO)
    @ApiModelProperty(value = "是否结算", name = "asSettled", position = 5)
    private Integer asSettled;

    public String getBusinessCode() {
        return businessCode;
    }

    public CoffinItem setBusinessCode(String businessCode) {
        this.businessCode = businessCode;
        return this;
    }

    public Integer getServiceItemId() {
        return serviceItemId;
    }

    public CoffinItem setServiceItemId(Integer serviceItemId) {
        this.serviceItemId = serviceItemId;
        return this;
    }

    public String getItemName() {
        return itemName;
    }

    public CoffinItem setItemName(String itemName) {
        this.itemName = itemName;
        return this;
    }

    public Integer getAsUnsettled() {
        return asUnsettled;
    }

    public CoffinItem setAsUnsettled(Integer asUnsettled) {
        this.asUnsettled = asUnsettled;
        return this;
    }

    public Integer getAsSettled() {
        return asSettled;
    }

    public CoffinItem setAsSettled(Integer asSettled) {
        this.asSettled = asSettled;
        return this;
    }
}
